<template>
    <div class="error-page">
      <div class="container-content">
        <div class="container-title">
          <div class="title">
            <div class="number">4</div>
            <div class="moon">
              <div class="face">
                <div class="mouth"></div>
                <div class="eyes">
                  <div class="eye-left"></div>
                  <div class="eye-right"></div>
                </div>
              </div>
            </div>
            <div class="number">4</div>
          </div>
          <div class="subtitle">哎呀,看来你迷路了。</div>
        </div>
      </div>
    </div>
  </template>
  
  <script setup>
  import { useRouter } from 'vue-router';
  
  const router = useRouter();
  
  const goBack = () => {
    router.push('/');
  };
  </script>
  
  <style scoped>
  .error-page {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: linear-gradient(to bottom, #292256 0%, #8446cf 70%, #a871d6 100%);
    color: white;
    font-family: 'Arial', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .container-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  
  .container-title {
    text-align: center;
  }
  
  .title {
    font-size: 150px;
    display: flex;
    align-items: center;
  }
  
  .moon {
    width: 120px;
    height: 120px;
    background-color: #fff;
    border-radius: 50%;
    margin: 0 20px;
    position: relative;
    animation: rotate 5s ease-in-out infinite;
  }
  
  .face {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  
  .mouth {
    width: 25px;
    height: 25px;
    background-color: #5c3191;
    border-radius: 50%;
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .eyes {
    display: flex;
    justify-content: space-between;
    width: 60px;
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .eye-left, .eye-right {
    width: 20px;
    height: 10px;
    border: 3px solid #5c3191;
    border-top: none;
    border-radius: 0 0 10px 10px;
  }
  
  .subtitle {
    font-size: 24px;
    margin-top: 20px;
  }
  
  @keyframes rotate {
    0%, 100% { transform: rotate(-8deg); }
    50% { transform: rotate(8deg); }
  }
  
  @media (max-width: 600px) {
    .title { font-size: 100px; }
    .moon { width: 80px; height: 80px; }
    .subtitle { font-size: 18px; }
  }
  </style>